<?php
class Model_UserManagement extends MVC_MODEL {
	/**
	 * @var object SQL
	 */
	public $oDb_management;
	
	public function __construct(){
		parent::__construct();
		$this->oDb_management = new Db_UserManagement();
	}
	public function getListUser()
	{
		return $this->oDb_management->getListUser($this);
	}
	public function updateUser()
	{	
		return $this->oDb_management->updateUser($this->getAllData());
	}
	public function insertUser(){
		return $this->oDb_management->doInsert($this->getAllData(),false);
	}
	public function deleteUser()
	{
		return $this->oDb_management->doDeleteByPK($this->getData('admin_id'));
	}
	public function getInfoUser()
	{
		return $this->oDb_management->getInfoUser($this->getData('admin_id'));
	}
        public function getTemplate(){
            return $this->oDb_management->getTemplate();
        }
        public function getRootCategory(){
            return $this->oDb_management->getRootCategory();
        }
}
?>